ACG LINK
Amazon DocumentDB: Overview and Configuration Example
Amazon DocumentDB is a fully managed NoSQL database service designed to store, query, and index JSON-like documents. It is compatible with MongoDB, providing a familiar interface and tools for developers who are already using MongoDB. Here's a detailed overview of Amazon DocumentDB along with a configuration example:
Features of Amazon DocumentDB:
-
Managed NoSQL Database:
- Amazon DocumentDB is a fully managed NoSQL database service.
- Compatibility with MongoDB:
- Offers compatibility with the MongoDB 3.6 API, allowing you to use existing MongoDB tools and drivers.
- Scalability:
- Allows you to scale your cluster by adding read replicas to handle increased read workloads.
- Durability and Availability:
- Provides high durability and availability by replicating data across multiple Availability Zones.
- Security Features:
- Offers encryption at rest and in transit, fine-grained access control, and integration with AWS Key Management Service (KMS).
- Automated Backups and Snapshots:
- Enables automated backups and manual snapshots for data protection and recovery.
- Indexing and Querying:
- Supports indexing and querying of JSON-like documents using the MongoDB query language.
- Data Compression:
- Uses a native wire protocol to compress data for efficient storage and retrieval.
Configuration Example:
Let's create a simple Amazon DocumentDB cluster using the AWS Management Console:
-
Login to AWS Console:
- Open DocumentDB Console:
- Click on the "DocumentDB" service in the console.
- Create Cluster:
- Click "Create cluster" and provide the cluster details.
- Specify the cluster identifier, master username, and password.
- Configure Cluster:
- Choose the instance type, replication settings, and DocumentDB engine version.
- Set Up VPC and Security:
- Configure the Amazon Virtual Private Cloud (VPC) details, including VPC security groups.
- Enable Encryption (Optional):
- Optionally, enable encryption at rest using AWS Key Management Service (KMS).
- Configure Additional Settings (Optional):
- Optionally, configure additional settings such as backup retention period, maintenance window, and tags.
- Review and Create:
- Review the cluster configuration and click "Create cluster."
- Monitor Cluster Creation:
- Monitor the cluster creation process in the DocumentDB console until the status becomes "Available."
- Connect to Cluster:
- Once the cluster is available, connect to it using a MongoDB-compatible query client or tool.
- Load Data and Run Queries:
- Load data into the DocumentDB cluster and run MongoDB queries using the MongoDB query language.
- Scale Cluster (Optional):
- Optionally, scale the cluster by adding read replicas to handle increased read workloads.
- Backup and Restore (Optional):
- Optionally, configure automated backups and manual snapshots for data protection.
- Terminate Cluster (Optional):
- Optionally, you can delete the DocumentDB cluster through the console if it's no longer needed.